home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / manageme / tcpdump-.7 / tcpdump- / tcpdump-richard-1.7 / linux-include / netinet / udp_var.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  1.0 KB  |  47 lines

  1. /*    @(#)udp_var.h 1.8 88/08/19 SMI; from UCB 7.1 6/5/86    */
  2.  
  3. /*
  4.  * Copyright (c) 1982, 1986 Regents of the University of California.
  5.  * All rights reserved.  The Berkeley software License Agreement
  6.  * specifies the terms and conditions for redistribution.
  7.  */
  8.  
  9. /*
  10.  * UDP kernel structures and variables.
  11.  */
  12.  
  13. #ifndef _netinet_udp_var_h
  14. #define _netinet_udp_var_h
  15.  
  16. struct    udpiphdr {
  17.     struct     ipovly ui_i;        /* overlaid ip structure */
  18.     struct    udphdr ui_u;        /* udp header */
  19. };
  20. #define    ui_next        ui_i.ih_next
  21. #define    ui_prev        ui_i.ih_prev
  22. #define    ui_x1        ui_i.ih_x1
  23. #define    ui_pr        ui_i.ih_pr
  24. #define    ui_len        ui_i.ih_len
  25. #define    ui_src        ui_i.ih_src
  26. #define    ui_dst        ui_i.ih_dst
  27. #define    ui_sport    ui_u.uh_sport
  28. #define    ui_dport    ui_u.uh_dport
  29. #define    ui_ulen        ui_u.uh_ulen
  30. #define    ui_sum        ui_u.uh_sum
  31.  
  32. struct    udpstat {
  33.     int    udps_hdrops;
  34.     int    udps_badsum;
  35.     int    udps_badlen;
  36.     int    udps_fullsock;
  37. };
  38.  
  39. #define    UDP_TTL        30        /* time to live for UDP packets */
  40.  
  41. #ifdef KERNEL
  42. struct    inpcb udb;
  43. struct    udpstat udpstat;
  44. #endif
  45.  
  46. #endif /*!_netinet_udp_var_h*/
  47.